<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>循环渲染字符串</title>
</head>
<body>
<div id="app">
    <div>{{ message }}</div>

<!--    <div>{{ message[0] }}</div>-->
    <div v-for="char in message">{{ char }}</div>
    <br>
    <div style="display: inline" v-for="char in message">{{ char }}</div>
    <br>
    <span v-for="char in message">{{ char }}</span>

    <div v-for="(char, index) in message">{{ index }} {{ char }}</div>

</div>

<script src="../../../../../js/vue.global.js"></script>
<script>
    const app = Vue.createApp({
        data(){
            return {
              message:"Hello, World!",
            }
        },
        methods:{}
    })

    app.mount("#app")
</script>
</body>
</html>